/**
 * File name: Cluster.java Author: Willard Wang Create date: Aug 24, 2013
 */
package edu.sjtu.se.prophet.cluster;

import java.util.HashSet;
import java.util.Set;

/**
 * @author deathspeeder
 * 
 */
public class Cluster {
    protected Set<Point> points = new HashSet<Point>();

    public Set<Point> getPoints() {
        return points;
    }

    public void setPoints(Set<Point> points) {
        this.points = points;
    }

    public void addPoint(Point p) {
        points.add(p);
        p.setCluster(this);
    }
    
    public void removePoint(Point p) {
        points.remove(p);
    }

}
